package com.itheima.restkeeper.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.restkeeper.pojo.Apicert;
import com.itheima.restkeeper.req.ApicertVo;

/**
 * @Description： 服务类
 */
public interface IApicertService extends IService<Apicert> {

    /**
     * @Description 证书列表
     * @param apicertVo 查询条件
     * @param pageNum 页码
     * @param pageSize 每页条数
     * @return Page<ApicertVo>
     */
    Page<Apicert> findApicertVoPage(ApicertVo apicertVo, int pageNum, int pageSize);

    /**
     * @Description 创建证书
     * @param apicertVo 对象信息
     * @return
     */
    Apicert createApicert(ApicertVo apicertVo);

    /**
     * @Description 修改证书
     * @param apicertVo 对象信息
     * @return Boolean
     */
    Boolean updateApicert(ApicertVo apicertVo);

    /**
     * @Description 删除证书
     * @param checkedIds 选择中对象Ids
     * @return Boolean
     */
    Boolean deleteApicert(String[] checkedIds);

    /**
     * 下载证书
     * @param apicertVo 证书ID
     * @return
     */
//    InputStream loadApicert(ApicertVo apicertVo);


//    Apicert verificationApicert(String apicertVo);

}
